#define  _CRT_NON_CONFORMING_SWPRINTFS
#include "libutilsconfig.h"
#include "process.h"
#include <cstdio>

LIB_NS_BEGIN

bool UProcess::CreateProcess(const TCHAR* szCMD )
{
	STARTUPINFO si={0};
	si.cb   =   sizeof(STARTUPINFO);
	PROCESS_INFORMATION pi ={0};

	TCHAR buff[MAX_PATH*2];
	_stprintf(buff,_T("%s"),szCMD);

	return 	::CreateProcess(NULL,buff, NULL, NULL,FALSE, 0, NULL, NULL, &si, 
		&pi) == TRUE ? true : false;
}

LIB_NS_END